package org.scratchcrew.services;

import org.scratchcrew.domain.Board;
import org.scratchcrew.domain.BoardData;
import org.springframework.transaction.annotation.Transactional;

/**
 * Interface for operations supported for Boards.
 */
public interface BoardService extends EntityService<Board> {

	/**
	 * Creates a board and persists it to the database.
	 * 
	 */
	@Transactional
	public Board create(String data, String name, Long ownerId);

	@Transactional
	public BoardData findBoardData(Long boardId);

}
